package cn.exrick.xboot.modules.transport.mapper;

import cn.exrick.xboot.modules.transport.param.QueryCompanyRoutesParam;
import cn.exrick.xboot.modules.transport.vo.CompanyRoutesVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.exrick.xboot.modules.transport.entity.CompanyRoutes;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

/**
 * 物流公司线路信息数据处理层
 * @author gj
 */
public interface CompanyRoutesMapper extends BaseMapper<CompanyRoutes> {

    /**
     * 根据id获取线路信息
     * @param id
     * @return
     */
    CompanyRoutesVo getRoutesById(@Param("id") Long id);

    IPage<CompanyRoutesVo> getByCondition(@Param("page") Page page,@Param("param") QueryCompanyRoutesParam param);
}